package tmt.usercenter.web.repository;


import com.tmt.jpa.jpaservice.ITmtBaseRepo;
import tmt.usercenter.web.domain.RealNameMaterial;

public interface IRealNameMaterialRepo extends ITmtBaseRepo<RealNameMaterial, Long> {

	RealNameMaterial findFirstByUserIdOrderByIdDesc(Long userId);

	RealNameMaterial findFirstByCardNo(String cardNo);

	boolean existsByCardNoAndNameNot(String cardNo, String name);
}
